package com.wms.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Api("权限类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WarehouseNode {
    @ApiModelProperty(name = "仓库id", notes = "")
    private Integer id;
    @ApiModelProperty(name = "仓库名", notes = "")
    private String name;
    @ApiModelProperty(value = "父id")
    int parentId;
    @ApiModelProperty(name = "子仓库", notes = "")
    private List<WarehouseNode> children; // 子节点列表，实现一对多
}
